import request from '@/utils/request'

export const articleManageList = function(params){
  return request({
    url: '/article_manage/list',
    method: 'get',
    params: params,
  })
}

export const articleManageAdd = function(params){
  return request({
    url: '/article_manage/add',
    method: 'post',
    data: params,
  })
}


export const articleManageEditGet = function(params){
  return request({
    url: '/article_manage/edit',
    method: 'get',
    params: params,
  })
}

export const articleManageEditPost = function(params){
  return request({
    url: '/article_manage/edit',
    method: 'post',
    data: params,
  })
}

export const articleManageDel = function(params){
  return request({
    url: '/article_manage/del',
    method: 'post',
    data: params,
  })
}

export const articleManageTag = function(params){
  return request({
    url: '/article_manage/set_tag',
    method: 'post',
    data: params,
  })
}

export const articleManageStatus = function(params){
  return request({
    url: '/article_manage/status_switch',
    method: 'post',
    data: params,
  })
}

export const articleManageIsTop = function(params){
  return request({
    url: '/article_manage/is_top_switch',
    method: 'post',
    data: params,
  })
}

export const articleManageExport = function(params){
  return request({
    url: '/article_manage/export_url',
    method: 'get',
    params: params,
  })
}

export const articleManageTitle = function(params){
  return request({
    url: '/article_manage/article_title',
    method: 'get',
    params: params,
  })
}

export const articleDiscountProductGet = function(params){
  return request({
    url: '/article_discount_product/edit',
    method: 'get',
    params: params,
  })
}

export const articleDiscountProductPost = function(params){
  return request({
    url: '/article_discount_product/edit',
    method: 'post',
    data: params,
  })
}

export const articleDiscountProductInfo = function(params){
  return request({
    url: '/article_discount_product/discount_product_relateInfo',
    method: 'get',
    params: params,
  })
}


export const articleProductEditGet = function(params){
  return request({
    url: '/article_product/edit',
    method: 'get',
    params: params,
  })
}

export const articleProductEditPost = function(params){
  return request({
    url: '/article_product/edit',
    method: 'post',
    data: params,
  })
}



